
//顶部fixed
.navbar-top.topFixed{
  background: var(--el-color-primary) !important;
}
.topFixed{
  .nav-tags1 .openSidebar{
    position: fixed;
    top: 0;
    right: 0;
    z-index: 20;
    width: calc(100% - 200px);
    -webkit-transition: width 0.28s;
    transition: width 0.28s;
  }
  .nav-tags1 .hideSidebar{
    position: fixed;
    top: 0;
    right: 0;
    z-index: 20;
    width: calc(100% - 54px);
    -webkit-transition: width 0.28s;
    transition: width 0.28s;
  }
  //.nav-tags .tags-view-container{
  //  position: fixed;
  //  top: 0;
  //  right: 0;
  //  z-index: 20;
  //}
  //.app-main{
  //  margin-top: 90px;
  //}
  .sidebar-container .sidebar-logo-container{
    border-right: none !important;
  }
  .el-breadcrumb__item a{
    color: #fff !important;
  }
  .el-breadcrumb__item span, .app-breadcrumb.el-breadcrumb .no-redirect{
    color: #fff !important;
  }
  .tags-view-container .tags-view-wrapper .tags-view-item{
    margin-top: 0px !important;
    border-top:0px !important;
    line-height: 38px !important;
  }
  .tags-view-container .tags-view-wrapper .tags-view-item.active{
    border-top:0px !important;
  }
  .right-menu .svg-icon, .avatar-container .avatar-wrapper .el-icon{
    color: #ffffff;
  }
}

#app {
  .main-container {
    background: #f8f8f8;
  }
  .el-sub-menu .el-icon{
    width: auto;
    margin-right: 10px;
  }
  .sidebar-container .svg-icon{
    //margin-right: 10px !important;
  }
}
.el-breadcrumb__item:last-child .el-breadcrumb__separator{
  display: none !important;
}
.justify-between {
  justify-content: space-between
}
.ml-2{
  margin-right: 10px;
}
.text-primary {
  color: var(--el-color-primary)
}
.cursor-pointer {
  cursor: pointer
}
.icon-list .flex{
  display: flex;
  padding-top: 5px;
  padding-bottom: 10px;
}

/*********样式修改************/
.el-form-item__label {
  font-weight: normal ;
  font-size: 14px !important;
}



.main-container .tags-view-container{
  -webkit-box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08) !important;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08) !important;
  border-bottom: 1px solid #f5f5f5 !important;
  height: 40px !important;
  overflow: hidden;

  .el-scrollbar__wrap{
    //margin-bottom: 0px !important;
    height: auto !important;
  }
}

.tags-view-container .tags-view-wrapper .tags-view-item{
  height: 40px !important;
  line-height: 35px !important;
  margin-top: 1px !important;
  margin-left: 0px !important;
  border: none !important;
  font-size: 13px !important;
  padding: 0 10px !important;
  .el-icon-close{
    //font-size: 15px !important;
    vertical-align: -2px !important;
  }
  .el-icon-close:before{
    vertical-align: 0px;
  }
  &.active{
    border-top: 2px solid var(--el-color-primary) !important;
  }

}
.border-none{border-style:none!important}
.sidebar-container{
  box-shadow: none !important;
  //border-right: 1px solid #f5f5f5 !important;
  .el-sub-menu__title{
    height: 50px;
    line-height: 50px;
  }
  .sidebar-logo-container{
    border-right: 1px solid #f5f5f5 !important;
  }
  .el-scrollbar{
    border-right: 1px solid #f5f5f5 !important;
  }
}

.app-main{
  background-color: #f8f8f8;
  .panel-group .card-panel{
    box-shadow:none !important;
    border-radius: 5px;
  }
  .dashboard-editor-container{
    background-color: #f6f6f6 !important;
    padding: 15px !important;
  }
  .panel-group .card-panel-col{
    margin-bottom: 15px !important;
  }
  .el-tabs{
    //box-shadow: 0 1px 3px rgba(0, 21, 41, 0.1) !important;
    //border: 1px solid #f8f8f8;
  }
  .el-tabs--border-card > .el-tabs__header .el-tabs__item{
    font-weight: normal;
  }

}
.panel-group{
  margin-top: 0px !important;
  .card-panel{
    padding:  20px 15px;
  }
}
.panel-group .card-panel .card-panel-icon-wrapper{
  background: rgba(113, 130, 189, .1) !important;
  margin-top: 8px !important;
  margin-right: 15px !important;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  .svn-icon{
    width: 35px !important;
  }
}
.panel-group .card-panel .card-panel-icon{
  width: 28px !important;
  height: 28px !important;

}
.panel-group .card-panel .card-panel-description {
  float: none !important;
  font-weight: normal !important;
  margin-top: 12px !important;
  .card-panel-text{
    font-size: 12px !important;
    margin-bottom: 4px !important;
    color: rgba(148, 174, 217, 1) !important;
    font-weight: normal !important;
  }
  .card-panel-num{
    font-size: 22px !important;
    color: #000;
  }

}
.search-form{
  background: #fff;
  margin: 15px !important;
  border-radius: 5px;
  padding: 15px 15px 0 15px !important;

}
.app-container{
  background: #fff;
  margin: 15px !important;
  border-radius: 5px;
  &.main-box{
    background: inherit;
    padding: 0px !important;
    .action-btns{
      padding-bottom: 15px;
      margin: 0px !important;
      margin-bottom: 0px !important;
      background: var(--el-bg-color);
    }
  }
  &.home{
    margin: 0px !important;
  }
  .search-card{
    margin-bottom: 15px;
    .search-form.el-form{
      border:none;
      padding:0px;
      margin-bottom:0px;
      .bottom-btns{
        margin-bottom: 0px;
      }
    }
  }
  .search-form{
    box-shadow:none;
    .bottom-btns{
      display: block;
    }
  }
  .table-card{
    .pagination-container{
      margin-top: 15px;
      margin-bottom: 15px;
    }
  }
  .pagination-container{
    margin-top: 15px;
    margin-bottom: 15px;
  }
  padding: 15px !important;
  padding-top: 15px;
  .el-form.el-form--inline{
    &.search-form{
      box-shadow:none !important;
    }
    //border: 1px solid #f8f8f8;
    background-color: #fff;
    //box-shadow: 0 1px 3px rgba(0, 21, 41, 0.1) !important;
    //padding: 15px;
    padding-bottom: 0px;
    margin-bottom: 15px;
    border-radius: 5px;
  }

}

.el-table table.el-table__header th{
  background-color: #f8f8f8
}
.sidebar-container .el-submenu{
  .el-submenu__title{
    height: 46px;
    line-height: 46px;
  }
  .el-menu-item{
    height: 46px;
    line-height: 46px;
  }
}
.el-menu-item{
  height: 46px !important;
  line-height: 46px !important;
}

/* NProgress */
#nprogress .bar {
  background: var(--el-color-primary) !important;
}

.header-search .search-icon{
  margin-top: 3px;
}
.avatar-wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
  i{
    width: 15px;
    margin-left: 5px;
  }
}
.topmenu-container.el-menu--horizontal > .el-menu-item:hover{
  color: inherit !important;
}


.el-tree.tree-border{
  width: 100%;
}

#topmenu-container > li.el-menu-item{
  &.is-active{
    color: inherit !important;
  }
  &:hover{
    color: inherit !important;
  }
}

.el-button {
  // 防止被tailwindcss默认样式覆盖
  background-color: var(--el-button-bg-color, var(--el-color-white));



  //覆盖el-button的点击样式
  &:focus {
    color: var(--el-button-text-color);
    border-color: var(--el-button-border-color);
    background-color: var(--el-button-bg-color);
  }
  &:hover {
    color: var(--el-button-hover-text-color);
    border-color: var(--el-button-hover-border-color);
    background-color: var(--el-button-hover-bg-color);
  }
}
.form-normal{
  .title{
    background: #f5f5f5;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: bold;
  }

}

//表单元素样式
// .el-form-item__label{
//   line-height: 32px !important;
// }
//.el-form-item__content{
//  line-height: 32px !important;
//  .el-input__inner{
//    line-height: initial;
//    height: 32px;
//  }
//  .el-input-number{
//    line-height: 32px !important;
//  }
//}

//.vue-treeselect__menu{
//  .vue-treeselect__input{
//    line-height: 32px !important;
//  }
//  .vue-treeselect__option--selected{
//  background-color: #f2f2f2 !important;
//  }
//}

//.el-input-number.is-controls-right .el-input-number__decrease, .el-input-number.is-controls-right .el-input-number__increase{
//  line-height: 16px !important;
//}
//.el-button{
// //padding: 8px 18px !important;
// }

//tabs样式
//.vue-treeselect__label{
//  font-weight: normal !important;
//}
// .el-input__suffix .el-input__icon{
//   line-height: 32px;
// }

.el-tabs--border-card{
  border: 1px solid #f8f8f8 !important;
  box-shadow: 0 1px 3px rgba(0, 21, 41, 0.1) !important;
}
.el-tabs--border-card>.el-tabs__header{
  background-color: #f8f8f8 !important;
  //border-bottom: 1px solid #f8f8f8 !important;
}
.el-tabs--border-card>.el-tabs__header{
  background-color: #f8f8f8 !important;
  border-bottom: 1px solid #f8f8f8 !important;
}
.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{
  border-right-color: #f8f8f8 !important;
  border-left-color: #f8f8f8 !important;
}
//breadcrumb
.el-breadcrumb .el-breadcrumb__inner a, .el-breadcrumb__inner.is-link{
  color: rgb(166, 166, 166);
}
.app-breadcrumb.el-breadcrumb .no-redirect{
  color: rgb(166, 166, 166) !important;
}
//logo
.sidebar-logo-container .sidebar-logo-link .sidebar-logo{
  width: 28px !important;
  height: auto !important;
}
.small-padding .el-button span{
  font-size: 13px;
}

//全屏显示
.fullscreen {
  .el-dialog {
    width: 100% !important;
  }
}
.no_fullscreen {
  .el-dialog {
    width: inherit;
  }
}
.custom_dialog_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.custom_dialog_menu {
  margin: 0px 20px 0 0px;
}

.fullscreen-icon {
  cursor: pointer;
  color: #909399;
}
.footer-btns{
  height: 60px;
  &__content {
    bottom: 0;
    height: 60px;
    right: 0;
    left: 0;
    z-index: 99;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--el-bg-color);
    --tw-shadow: var(--el-box-shadow);
    --tw-shadow-colored: var(--el-box-shadow);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);
  }
}
.danger-btn{
  color:var(--el-color-danger) !important;
}

.flex{
  display: flex;
}
// 方向
.flex-row { flex-direction: row !important;}
.flex-row-reverse { flex-direction: row-reverse !important;}
.flex-col { flex-direction: column !important;}
.flex-col-reverse { flex-direction: column-reverse !important;}
// 换行
.flex-wrap { flex-wrap: wrap !important;}
.flex-wrap-reverse { flex-wrap: wrap-reverse !important;}
.flex-nowrap { flex-wrap: nowrap !important;}
// 控制 flex 项目放大和缩小
.flex-1 { flex: 1 1 0% !important;}
.flex-none { flex: none !important;}
// 控制 flex 项目放大的功能类
.flex-grow-0 { flex-grow: 0 !important;}
.flex-grow { flex-grow: 1 !important;}
// 控制 flex 项目缩小的功能类
.flex-shrink-0 { flex-shrink: 0 !important;}
.flex-shrink { flex-shrink: 1 !important;}
// justify-content用于控制 flex 和 grid 项目如何沿着容器的主轴定位的功能类
.justify-start { justify-content: flex-start !important;}
.justify-end { justify-content: flex-end !important;}
.justify-center { justify-content: center !important;}
.justify-between { justify-content: space-between !important;}
.justify-around { justify-content: space-around !important;}
.justify-evenly { justify-content: space-evenly !important;}
// align-items用于控制 Flex 和网格项如何沿着容器的横轴定位的功能类
.items-start { align-items: flex-start !important;}
.items-end {align-items: flex-end !important;}
.items-center {align-items: center !important;}
.items-baseline { align-items: baseline !important;}
.items-stretch { align-items: stretch !important;}
.grid {display: grid !important;}


/* ============ 间距 ============*/

// 上下左右的内外边距：0 - 80（递增数：2，含尾数为5的数） 
@for $i from 0 through 80 {
	// 只要双数和能被5除尽的数
	@if $i % 2 == 0 or $i % 5 == 0 {
		// 定义外边距，结果如：m-30
		.m-#{$i} {
			margin: $i + px!important;
		}
		// 定义内边距，结果如：p-30
		.p-#{$i} {
			padding: $i + px!important;
		}
		@each $short, $long in l left, t top, r right, b bottom {
			// 定义外边距，结果如： ml-30// 水平和垂直的内外边距：0 - 80（递增数：5）
@for $i from 0 through 16 {
	$var: $i * 5;
	.mx-#{$var} {
		margin-left: $var + px!important;
		margin-right: $var + px!important;
	}
	.my-#{$var} {
		margin-top: $var + px!important;
		margin-bottom: $var + px!important;
	}
	.px-#{$var} {
		padding-left: $var + px!important;
		padding-right: $var + px!important;
	}
	.py-#{$var} {
		padding-top: $var + px!important;
		padding-bottom: $var + px!important;
	}
}
			.m#{$short}-#{$i} {
				margin-#{$long}: $i + px!important;
			}
			// 定义内边距
			.p#{$short}-#{$i} {
				padding-#{$long}: $i + px!important;
			}
		}
	}
}
/* ============ 字体文本 ============*/

// 大小
// 数值形式（取偶数）
@for $i from 20 through 60 {
  @if $i % 2 == 0 {
    .text-#{$i} {
      font-size: $i + px;
    }
  }
}
// 粗细
.font-thin {
	font-weight: 100;
}
.font-extralight {
	font-weight: 200;
}
.font-light {
	font-weight: 300;
}
.font-normal {
	font-weight: 400;
}
.font-medium {
	font-weight: 500;
}
.font-semibold {
	font-weight: 600;
}
.font-bold {
	font-weight: 700;
}
.font-extrabold {
	font-weight: 800;
}
.font-black {
	font-weight: 900;
}
// 行高
.leading-0{ line-height: 0!important; }
.leading-05{ line-height: 0.5!important;}
.leading-10{ line-height: 1!important; }
.leading-12{ line-height: 1.2!important; }
.leading-15{ line-height: 1.5!important; }
.leading-20{ line-height: 2!important; }
.leading-30{ line-height: 3!important; }
// 文本对齐
.text-left { text-align: left!important;}
.text-center { text-align: center!important;}
.text-right { text-align: right!important;}
.text-justify { text-align: justify!important;}
// 文本溢出
.line-1 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.line-2 {
    -webkit-line-clamp: 2;
}
.line-3 {
    -webkit-line-clamp: 3;
}
.line-4 {
    -webkit-line-clamp: 4;
}
.line-5 {
    -webkit-line-clamp: 5;
}
.line-2, .line-3, .line-4, .line-5 {
    overflow: hidden;
		word-break: break-all;
    text-overflow: ellipsis; 
    display: -webkit-box; // 弹性伸缩盒
    -webkit-box-orient: vertical; // 设置伸缩盒子元素排列方式
}
// 换行
.break-normal { overflow-wrap: normal;word-break: normal;}
.break-words { overflow-wrap: break-word;} // 在长单词或 URL 地址内部进行换行
.break-all { word-break: break-all;} // 在单词内换行
// 文本修饰
.underline { text-decoration-line: underline; }
.overline { text-decoration-line: overline; }
.line-through { text-decoration-line: line-through; }
.no-underline { text-decoration-line: no-underline; }
// 下划线位置
.underline-offset-auto	{ text-underline-offset: auto; }
.underline-offset-0	{ text-underline-offset: 0px; }
.underline-offset-1	{ text-underline-offset: 1px; }
.underline-offset-2	{ text-underline-offset: 2px; }
.underline-offset-4	{ text-underline-offset: 4px; }
.underline-offset-8	{ text-underline-offset: 8px; }
